package com.example.mongo.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfig {
    
    @Bean(name = "myBean1")
    public MyBean myBean1(){
        return new MyBean("111");
    }

    @Bean(name = "myBean2")
    public MyBean myBean2(){
        return new MyBean("222");
    }
}
